<template>
    <div>
        <el-divider content-position="center">通知</el-divider>
        <div>
            <div v-for="(n,index) in this.AllInform.length" :key="index" class="text item">
                <el-card shadow="hover" style="background-color: #76e5a8">
                    <div>
                        {{AllInform[index].informTime}}
                    </div>
                    <div>
                        {{AllInform[index].informDetail}}
                    </div>
                </el-card>
                <div style="height: 8px">
                </div>
            </div>
        </div>
    </div>
</template>

<script>
    export default {
        data() {
            return {
                uid: "",
                AllInform: [],
            }
        },
        created() {
            this.uid = window.sessionStorage.getItem('uid')
            this.getInformByUserId()
        },
        methods: {


            async getInformByUserId() {
                const {data: res} = await this.$http.get("getInformByUserId?uid=" + this.uid);
                this.AllInform = res;
            },
        }
    }
</script>

<style scoped>
</style>

